#pragma once 
#include <iostream>
#include <string>

#define DEBUG   0
#define NORMAL  1
#define WARNING 2
#define ERROR   3
#define FATAL   4

using namespace std;

enum { USAGE_ERR = 1,SOCKET_ERR,BIND_ERR,LISTEN_ERR};


void logMessage(int level,const string& message)
{
    //[日志等级] [时间戳/时间] [pid] [错误信息]
    //[warning] [2023/5/20 9:00:01] [1234] [创建socket失败]

    cout << message << endl;
}